<!doctype html>
<html>
<head>
<meta charset="utf-8">
<ytata:tagview listname="show" tag="$_GET['t']"/>
<if condition="$Think.get.type eq ''"><assign name="catname" value="问答"/></if>
<if condition="$Think.get.type eq '2'"><assign name="catname" value="文章"/></if>
<title>{:SEO('tag-view','title',array('TAG'=>$show['tag'],'CATNEME'=>$catname))}</title>
<meta name="keywords" content="{:SEO('tag-view','keywords',array('TAG'=>$show['tag'],'CATNEME'=>$catname))}">
<meta name="description" content="{:SEO('tag-view','description',array('TAG'=>$show['tag'],'TAG_CONTEND'=>$show['describe']))}">
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/tag.css" rel="stylesheet" type="text/css">
<include file="public:header" />

<div class="tagshow">

  <div class="arl">
  

		
				  <div class="picbox">
				  <img src="{$show.imgsrc}" border="0">
				  </div>
				  <div class="rigtit">
					<h1>{$show.tag|default="标签不存在或已删除"}</h1>
				  </div>
				  <div class="clear"></div>
				  <div class="tagtxt">{$show.describe|default="没有添加任何描述..."}</div>
				  
	 
		<!-- -->
		
	<div class="tagshownav">
	  <div class="relative">
			<a class="tagtype <if condition="$Think.get.type eq ''">select</if>" href="{:P(array('type'=>''))}">问答<span>({$show.count_question|default="0"})</span></a>
			<a class="tagtype article <if condition="$Think.get.type eq '2'">select</if>" href="{:P(array('type'=>'2'))}">文章<span>({$show.count_article|default="0"})</span></a>
			<a class="tagtype bbs <if condition="$Think.get.type eq '3'">select</if>" href="{:P(array('type'=>'3'))}">讨论<span>({$show.count_bbs|default="0"})</span></a>
			<div class="clear"></div>
	  </div>
	</div>
	

    <div class="tagsbox">
	
<if condition="$Think.get.type eq ''">	
	<!-- 读取问题 -->
<ytata:question listname="question" tagid="$show['id']" page="1" /> 
<volist name="question.list" id="li">
			<div class="qlist">
			<if condition="$li.issolve eq '1' ">
			  <div class="td1 type2"><span>{$li.answercount}</span><br>解决</div>
			  <else/>
			  		<if condition="$li.answercount eq 0 ">
					<div class="td1 type0"><span>{$li.answercount}</span><br>回答</div>
					<elseif condition="$li.answercount gt 0"/>
					<div class="td1 type1"><span>{$li.answercount}</span><br>回答</div>
					</if>
			  </if>
					<div class="td2"><span>{$li.click}</span><br>浏览</div>
					<div class="td3">
							<h4 class="link_gray3"><if condition="$li.reward gt 0 "><span class="reward">{$li.reward}</span></if><a href="{$li.url}" target="_blank">{$li.title}</a></h4>
							
							 <div class="author link_gray3">
							 <if condition="$li.answeruid gt 0 ">
							 <a href="{$li.replyuser.user_url}"  target="_blank">{$li.replyuser.nickname}</a> <span> 回复于 {$li.answertimestr}</span>
							 <else />
							  <a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.nickname}</a><span> 发布于 {$li.addtimestr}</span>
							 </if>
							 </div>
							 <volist name="li.tags" id="tagsli">
							 <a class="tag" href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
					  </volist> 
							<div class="clear"></div>
				   </div>
					<div class="clear"></div>
			</div>
 </volist>
<empty name="question.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>


 <!-- -->
 <div class="uupage">{$question.page}</div>
 <!-- -->
</if>


<if condition="$Think.get.type eq '2'">	
<ytata:article listname="new" tagid="$show['id']" page="1" /> 
<volist name="new.list" id="li">
	
 <div class="alist">
			  	<div class="imgbox">
					<a href="{$li.url}"><img src="{$li.img}" border="0"></a>
				</div>
			
			  <div class="txtbox">
				  <div class="atit link_gray3">
				  <h4>
				  <if condition="$li.excellent eq '1' "><span class="exc">精华</span></if>
				  <a href="{$li.url}">{$li.title}</a>
				  </h4>
				  </div>
				  
			      <div class="time">{$li.addtimestr}上传&nbsp;/&nbsp;人气<span  class="co">{$li.click}</span>&nbsp;/&nbsp;推荐<span class="co">{$li.praise}</span>
				   <notempty name="li.tags">
				  <span class="tag link_gray3">
				 
					<volist name="li.tags" id="tagsli">
							 <a   href="{$tagsli.tagurl}" >{$tagsli.tag}</a>
					  </volist> 
					 
				</span>
				 </notempty>
				  </div>
				  
			      <div class="txt">{$li.content_cut}
				    <div class="userimg"><img src="{$li.user.avatar}" border="0"></div>
				    <div class="username link_gray3 substring"><a href="{$li.user.user_url}" target="_blank">{$li.user.nickname}</a></div>
			      </div>
			  </div>
				<div class="clear"></div>
			</div>

</volist>
 <!-- -->
 <div class="uupage">{$new.page}</div>
 <!-- -->
<empty name="new.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
</if>

<if condition="$Think.get.type eq '3'">
	<!-- 读取 -->
	<ytata:bbs listname="bbs" tagid="$show['id']" page="1"/>
	<volist name="bbs.list" id="li">
		<div class="qlist">
		 
		 
			<div class="td3">
				<h4 class="link_gray3">
					<a href="{$li.url}" target="_blank">{$li.content_cut}</a>
				</h4>
				
				<div class="author link_gray3">
					<a class="tcat" href="{$li.cat.burl}">{$li.cat.c_title}</a>
					<if condition="$li.replyuid gt 0 ">
						<a href="{$li.replyuser.user_url}" target="_blank">{$li.replyuser.nickname}</a> <span> 回复于 {$li.replytimestr}</span>
						<else/>
						<a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.nickname}</a><span> 发布于 {$li.addtimestr}</span>
					</if>
				</div>
				<volist name="li.tags" id="tagsli">
					<a class="tag" href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
				</volist>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
	</volist>
	<empty name="bbs.list">
		<div class="infoempty"> 暂时木有内容呀～～</div>
	</empty>


	<!-- -->
	<div class="uupage">{$bbs.page}</div>
	<!-- -->
</if>

</div>
	
	
	
	
  </div>

  <div class="arr">
		<if condition="(C('YTATA_SMS_OPEN') eq '1') OR ($Think.session.ytata.uid NEQ '')">
			<a class="btn" href="{:RU('question/add')}">我要提问</a>
			<a class="btn share" href="{:RU('article/add')}">发表文章</a>
			<a class="btn bbs" href="{:RU('bbs/add')}">发表主题</a>
			<else />
			<a class="btn J_user_login" href="javascript:void(0);">我要提问</a>
			<a class="btn share J_user_login" href="javascript:void(0);">发表文章</a>
			<a class="btn bbs J_user_login" href="javascript:void(0);">发表主题</a>
		</if>
		
    	<div class="tagbox">
          <div class="tit">最新话题</div>
          
                      <div class="clear"></div>
					  <ytata:tag listname="tags"  page="0" sort="new" num="40"/>
					 <volist name="tags.list" id="tli">
          			 <a class="tag" href="{$tli.url}">{$tli.tag}<span>({$tli.count_question})</span></a>
					 </volist>
                      <div class="clear"></div>
        </div>
  </div>
  <div class="clear"></div>
  
</div>

<include file="public:footer" />
</body>
</html>
